package com.strutsDeom;

import com.opensymphony.xwork2.Action;

public class HelloWorldAction implements Action {
    //用户输入的姓名
    private String name="";
    //向用户展示的信息
    private String message="";

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String execute(){
        this.setMessage("Hello"+this.getName());
        return "helloWorld";
    }
}
